package com.cloud.api.domain.stats;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("t_maintenance")
@Schema(name = "Maintenance", description = "车辆维修表")
public class Maintenance implements Serializable {

    private static final long serialVersionUID = 1L;
    @Schema(description = "id")
    @TableId("id")
    private String id;

    @Schema(description = "报文时间 年月日")
    @TableField("dt")
    private LocalDate dt;

    @Schema(description = "vin")
    @TableField("vin")
    private String vin;

    @Schema(description = "服务站")
    @TableField("station_id")
    private String stationId;

    @Schema(description = "维修时间")
    @TableField("repair_time")
    private String repairTime;

    @Schema(description = "经纬度数据")
    @TableField("data")
    private String data;

    @Schema(description = "第一个纬度")
    @TableField("lat")
    private String lat;

    @Schema(description = "第一个经度")
    @TableField("lng")
    private String lng;

    @Schema(description = "开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @Schema(description = "最小纬度")
    @TableField("minLat")
    private String minLat;

    @Schema(description = "最大纬度")
    @TableField("maxLat")
    private String maxLat;

    @Schema(description = "最小经度")
    @TableField("minLng")
    private String minLng;

    @Schema(description = "最大经度")
    @TableField("maxLng")
    private String maxLng;
}
